<?php
session_start();
include_once  dirname(__FILE__).'./../module/common/config.inc.php';
include_once SITE_ROOT.'module/common/db_mysql.inc.php';
include_once SITE_ROOT.'module/smarty/Smarty.class.php'; //包含smarty类文件
$t = new Smarty();  //建立smarty实例对象$smarty
$t->template_dir = SITE_ROOT.'/theme/default/';
$t->compile_dir  = SITE_ROOT.'/theme/templates_c/';
$t->compile_id = 'index';
//$t->cache_dir = WEB_ROOT.'admin/_cache/';
$t->caching      = false;
$t->left_delimiter 	= "{{";
$t->right_delimiter = "}}";
$outvar[img_url] = SITE_URL.'theme/default/images/';
$outvar[js_url] = SITE_URL.'theme/default/javacript/';
$outvar[linkurl] = SITE_URL;
$outvar[headtitle] = SITE_NAME;
$outvar[site_title] = SITE_NAME;
$outvar[filename] = $php_self_name;
function outFile($mainT='index'){
	global $t,$outvar;
	$outvar[includeTamp] = $mainT.'.html';
	assignMore($outvar);
	$t->display('main.html');
}
